<?php
session_start();
$endTime=strtotime("2020-09-23 19:57:00");
$cha=$endTime - time();

if (!isset($_SESSION['openid'])){
    echo json_encode(array('s'=>'expire'));
    exit;
}
if ($cha > 0){
    echo json_encode(array('s'=>'n','t'=>$cha));
}else{
    echo json_encode(array('s'=>'k','t'=>$cha));
}
?>